// 写字楼 出售
import offsales from '../src/data/office/fang_office.json';
// 写字楼 出租数据
import offhire from '../src/data/office/fang_office_rental.json';

// 商铺 出售
import shopsales from '../src/data/office/fang_rental.json';

// 商铺 出租
import shophire from '../src/data/office/fang_shops_rental.json';

// console.log(offsales)
export default {
  'GET /getoffsales': (req: any, res: any) => {
    // console.log(offsales.RECORDS)
    res.send(offsales.RECORDS);
  },
  // 出租
  'GET /getoffhire': (req: any, res: any) => {
    // console.log(offsales.RECORDS)
    res.send(offhire.RECORDS);
  },
  'GET /getshopsales': (req: any, res: any) => {
    // console.log(offsales.RECORDS)
    res.send(shopsales.RECORDS);
  },
  'GET /getshophire': (req: any, res: any) => {
    // console.log(offsales.RECORDS)
    res.send(shophire.RECORDS);
  },
};
